home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / f90 / size.z / size
Text File  |  1998-10-30  |  2KB  |  45 lines

  1. SIZE(3I)                                               Last changed: 1-6-98
  2.  
  3.  
  4. NNAAMMEE
  5.      SSIIZZEE - Returns the total number of elements in an array
  6.  
  7. SSYYNNOOPPSSIISS
  8.      SSIIZZEE (([AARRRRAAYY==]_a_r_r_a_y [,,[DDIIMM==]_d_i_m]))
  9.  
  10. IIMMPPLLEEMMEENNTTAATTIIOONN
  11.      UNICOS, UNICOS/mk, and IRIX systems
  12.  
  13. SSTTAANNDDAARRDDSS
  14.      Fortran 90
  15.  
  16. DDEESSCCRRIIPPTTIIOONN
  17.      The SSIIZZEE intrinsic function returns the extent of an array along a
  18.      specified dimension or the total number of elements in the array.  It
  19.      accepts the following arguments:
  20.  
  21.      _a_r_r_a_y     May be of any type.  It must not be scalar.  It must not be
  22.                a pointer that is disassociated or an allocatable array that
  23.                is not allocated.  If _a_r_r_a_y is an assumed-size array, _d_i_m
  24.                must be present with a value less than the rank of _a_r_r_a_y.
  25.  
  26.      _d_i_m       Must be scalar and of type integer with a value in the range
  27.                1 <= _d_i_m <= _n, where _n is the rank of _a_r_r_a_y.
  28.  
  29.      SSIIZZEE is an inquiry function.  The name of this intrinsic cannot be
  30.      passed as an argument.
  31.  
  32. RREETTUURRNN VVAALLUUEESS
  33.      The result is a default integer scalar.  The result has a value equal
  34.      to the extent of dimension _d_i_m of _a_r_r_a_y or, if _d_i_m is absent, the
  35.      total number of elements of _a_r_r_a_y.
  36.  
  37. EEXXAAMMPPLLEESS
  38.      The value of SSIIZZEE((AA((22::55,, --11::11)),, DDIIMM==22)) is 3.  The value of SSIIZZEE((AA((22::55,,
  39.      --11::11)))) is 12.
  40.  
  41. SSEEEE AALLSSOO
  42.      _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-2138, for the
  43.      printed version of this man page.
  44.  
  45.